<template>
	<view class="profile-container">
		<!-- 登录组件 -->
		<my-login v-if="!token"></my-login>
		
		<!-- 用户信息组件 -->
		<my-userInfo v-else></my-userInfo>
	</view>
</template>

<script>
	import badgeMixins from '@/mixins/tabbar-badge.js'
	import {mapState} from 'vuex'

	export default {
		mixins:[badgeMixins],
		data() {
			return {
				
			};
		},
		computed:{
			...mapState('m_address', ['token'])
		}
	}
</script>

<style lang="scss">
page, .profile-container{
	height: 100%;
}
</style>
